import { View, Text, Input } from "@tarojs/components";
import { FC } from "@tarojs/taro";
import Category from "@/pages/component/category";
import List from "@/pages/component/customer-list";
import styles from "./index.module.less";
import Banner from "./component/banner";
import Menu from "./component/menu";
import useData from "./useData";
const Index: FC = () => {
  const { customerList, bannerList, setSearchObj } = useData();

  return (
    <View className={styles["content-wrapper"]}>
      <Banner list={bannerList || []} />
      {/* <Menu /> */}
      {/* <Category onSearch={(params) => setSearchObj(params)} /> */}
      <List list={customerList || []} />
    </View>
  );
};

export default Index;
